package com.ktjiaoyu.crm.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjiaoyu.crm.mapper.RightMapper;
import com.ktjiaoyu.crm.pojo.Right;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

/**
 * @ClassName : RightServiceImpl
 * @Description :
 * @Author : Lzz
 * @Date: 2023/12/1 10:33:34
 */
@Service("rightService")
public class RightServiceImpl extends ServiceImpl<RightMapper, Right> implements RightService {

    @Resource
    RightMapper rightMapper;
    @Override
    public Set<String> findRightsByRoleId(Long roleId) {

        return rightMapper.findRightsByRoleId(roleId);
    }

    @Override
    public List<Right> getRightsByRoleId(Long roleId) {
        return rightMapper.getRightsByRoleId(roleId);
    }
}
